how to add n numbers in c